EMT Practice Test

1. Question Content...


Question List

Question1: SIMULATION
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

Question2: Which command will uninstall a package but leave its configuration files in case the package is re- installed?

Question3: Which variable defines the directories in which a Bash shell searches for executable commands?

Question4: What does the command mount -a do?

Question5: SIMULATION
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Question6: When using regular expressions, which of the following characters match the beginning of a line?

Question7: Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Question8: Which chowncommand will change the ownership to daveand the group to staffon a file named data.txt?

Question9: SIMULATION
In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces.

Question10: Which of the following apt-getcommands will install the newest versions of all currently installed packages?

Question11: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Question12: Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?

Question13: Which of the following commands will load a kernel module along with any required dependency modules?

Question14: How many fields are in a syntactically correct line of /etc/fstab?

Question15: Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

Question16: From a Bash shell, which of the following commands directly executes the instruction from the file /usr/ local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Question17: Which of the following sequences in the vi editor saves the opened document and exits the editor?
(Choose TWO correct answers.)

Question18: What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Question19: Which of the following shell commands makes the already defined variable TESTvisible to new child processes? (Choose two.)

Question20: What does the ? symbol within regular expressions represent?

Question21: Which permissions and ownership should the file /etc/passwdhave?

Question22: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Question23: Which of the following commands will write a message to the terminals of all logged in users?

Question24: What is the purpose of the Bash built-in export command?

Question25: Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Question26: In Bash, inserting 2>&1after a command redirects:

Question27: Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

Question28: How is a symbolic link called bar.confpointing to foo.confcreated?

Question29: What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Question30: Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

Question31: Which of the following is true for hard linked files? (Choose three.)

Question32: Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Question33: When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

Question34: In order to display all currently mounted filesystems, which of the following commands could be used?
(Choose TWO correct answers.)

Question35: Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?

Question36: Which file should be edited to select the network locations from which Debian installation package files are loaded?

Question37: In the vi editor, which of the following commands will copy the current line into the vi buffer?

Question38: Which of the following commands will change all CR-LFpairs in an imported text file, userlist.txt, to Linux standard LFcharacters and store it as newlist.txt?

Question39: Which of the following commands will change the quota for a specific user?

Question40: Which signal is sent by the killcommand by default?

Question41: Which of the following kernel parameters instructs the kernel to suppress most boot messages?

Question42: What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Question43: What is the purpose of the xargs command?

Question44: Which of the following commands will display the inode usage of each mounted filesystem?

Question45: Which of the following commands prints a list of available package updates when using RPM-based package management?

Question46: SIMULATION
What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)

Question47: Which of the following commands changes all occurrences of the word "bob" in file datato "Bob" and prints the result to standard output?

Question48: Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?

Question49: Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Question50: Which of the following options must be passed to a filesystem's entry in /etc/fstabin order to mount the file system without root privileges?

Question51: What is the purpose of the Filesystem Hierarchy Standard?

Question52: Where does the BIOS search for a bootloader?

Question53: Which of the following commands will print the last 10 lines of a text file to the standard output?

Question54: Which of the following describes the correct order in which the components of the system boot process are started?

Question55: What does the command mount -a do?

Question56: Which of the following commands is used to change options and positional parameters for a running Bash?

Question57: What is the default nice level when a process is started using the nice command?

Question58: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Question59: Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)

Question60: Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Question61: Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

Question62: SIMULATION
Which file in /procdescribes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Question63: When piping the output of findto the xargs command, what option to findis useful if the filenames have spaces in them?

Question64: Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Question65: Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

Question66: Which RPM command will output the name of the package which supplied the file /etc/exports?

Question67: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Question68: SIMULATION
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)

Question69: Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

Question70: After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?

Question71: Which of the following statements is correct for a command line ending with a &character?

Question72: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Question73: Which of the following are modes of the vi editor? (Choose two.)

Question74: Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Question75: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Question76: Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Question77: Which of the following commands lists all currently installed packages when using RPM package management?

Question78: Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Question79: SIMULATION
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Question80: Which of the following commands updates the already installed RPM package rpmname?

Question81: SIMULATION
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Question82: SIMULATION
Which command reads and displays the current contents of the Kernel Ring Buffer on the command line?
(Specify ONLY the command without any path or parameters.)

Question83: What is the output of the following command?
echo "Hello World" | tr -d aieou

Question84: Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Question85: Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)

Question86: What command will generate a list of user names from /etc/passwd along with their login shell?

Question87: Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Question88: When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Question89: What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

Question90: Which of the following commands will reduce all consecutive spaces down to a single space?

Question91: What happens after issuing the command vi without any additional parameters?

Question92: A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Question93: SIMULATION
In which directory must definition files be placed to add additional repositories to yum?

Question94: Pressing the Ctrl-Ccombination on the keyboard while a command is executing in the foreground sends which of the following signal codes?

Question95: Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

Question96: Which of the following shell redirections will write standard output and standard error output to a file named filename?

Question97: In compliance with the FHS, in which of the directories are man pages found?

Question98: SIMULATION
Which command will display messages from the kernel that were output during the normal boot sequence?

Question99: Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Question100: Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Question101: Which shell command is used to continue background execution of a suspended command?

Question102: Which of the following are filesystems which can be used on Linux root partitions? (Choose two.)

Question103: Which of the following commands can be used to display the inode number of a given file?

Question104: Which of the following commands are common Linux commands for file management? (Choose three correct answers.)

Question105: In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Question106: Which of the following commands will produce the following output?

Question107: Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Question108: Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

Question109: Which of the following command sets the Bash variable named TEST with the content FOO?

Question110: SIMULATION
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Question111: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Question112: Which of the following is the device file name for the second partition on the only SCSI drive?

Question113: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Question114: Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Question115: In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Question116: Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Question117: Which of the following commands can be used to download the RPM package kernel without installing it?

Question118: In Bash, inserting 1>&2 after a command redirects

Question119: When in Normal mode in vi, which character can be used to begin a reverse search of the text?

Question120: Which command is used to query information about the available packages on a Debian system?

Question121: Which of the following commands moves and resumes in the background the last stopped shell job?

Question122: What is the process ID number of the init process on a SysV init based system?

Question123: What is the difference between the i and a commands of the vi editor?

Question124: Which of the following is a limitation of the cut command?

Question125: SIMULATION
Which command shows all shared libraries required by a binary executable or another shared library?
(Specify ONLY the command without any path or parameters.)

Question126: SIMULATION
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

Question127: Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

Question128: SIMULATION
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon

Question129: SIMULATION
Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?

Question130: SIMULATION
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Question131: Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Question132: Which of the following commands is used to change metadata and options for ext3 filesystems?

Question133: Which of the following commands updates the linker cache of shared libraries?

Question134: SIMULATION
Which command creates a swap space on a block device or a file? (Specify ONLY the command without any path or parameters.)

Question135: Which of the following commands instructs SysVinit to reload its configuration file?

Question136: Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Question137: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Question138: Which of the following commands can be used to create a USB storage media from a disk image?

Question139: Which of the following commands displays the contents of a gzip compressed tar archive?